#ifndef     __MOTOR_H
#define     __MOTOR_H

#include <stdint.h>

#define MOTOR_EC_OK 0
#define MOTOR_EC_TIMEOUT 1
#define MOTOR_EC_ALM 2
#define MOTOR_EC_INVALID 3

void motor_init();
uint8_t motor_debug_ctrl(uint8_t id, uint8_t dir);
uint8_t top_motor_exec() ;
uint8_t bottom_motor_exec() ;

#endif
